import request from "@/utils/request"
export default {
    //获取收藏商品数据
    getCollect(data={}){
        return request({
            url: "/api/user/collect/getCollect",
            method: "POST",
            data: data
        })
    },

    //删除收藏商品
    deleteColl(data={}){
        return request({
            url: "/api/user/collect/deleteCollect",
            method: "POST",
            data: data
        })
    },

    //获取购物车
    getShop(data={}){
        return request({
            url:"/api/user/shoppingCart/getShoppingCart",
            method:"POST",
            data:data
        })
    },

    //加入购物车
    addShopData(data={}){
        return request({
            url:"/api/user/shoppingCart/getShoppingCart",
            method:"POST",
            data:data
        })
    },

    //删除购物车商品
    deleteShop(data={}){
        return request({
            url:"/api/user/shoppingCart/deleteShoppingCart",
            method:"POST",
            data:data
        })
    }
}